home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-10-14 | 8.8 KB | [ TEXT/CWIE]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
You can browse this item here: GetScreenDevice.c
Confidence Program Detection Match Type Support
66%
dexvert
Compact Compressed (Unix) (archive/compact)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Sat Oct 14 05:43:49 1995, modified Sat Oct 14 05:43:49 1995, creator 'CWIE', type ASCII, 7958 bytes "GetScreenDevice.c" , at 0x1f96 654 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ CWIE]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 11 47 65 74 53 63 72 | 65 65 6e 44 65 76 69 63 |..GetScr|eenDevic| |00000010| 65 2e 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |e.c.....|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......| |00000050| 00 00 00 00 00 1f 16 00 | 00 02 8e ac a5 36 d5 ac |........|.....6..| |00000060| a5 36 d5 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.6......|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a6 55 00 00 |........|.....U..| |00000080| 2f 2a 20 47 65 74 53 63 | 72 65 65 6e 44 65 76 69 |/* GetSc|reenDevi| |00000090| 63 65 2e 63 0d 0d 09 64 | 65 76 69 63 65 3d 47 65 |ce.c...d|evice=Ge| |000000a0| 74 53 63 72 65 65 6e 44 | 65 76 69 63 65 28 6e 29 |tScreenD|evice(n)| |000000b0| 3b 0d 72 65 74 75 72 6e | 73 20 61 20 68 61 6e 64 |;.return|s a hand| |000000c0| 6c 65 20 74 6f 20 74 68 | 65 20 6e 2d 74 68 20 73 |le to th|e n-th s| |000000d0| 63 72 65 65 6e 2c 20 77 | 68 65 72 65 20 74 68 65 |creen, w|here the| |000000e0| 20 4d 61 69 6e 44 65 76 | 69 63 65 20 69 73 20 74 | MainDev|ice is t| |000000f0| 68 65 20 7a 65 72 6f 2d | 74 68 20 73 63 72 65 65 |he zero-|th scree| |00000100| 6e 2e 20 0d 54 68 69 73 | 20 69 73 20 73 69 6d 69 |n. .This| is simi| |00000110| 6c 61 72 2c 20 62 75 74 | 20 6e 6f 74 20 69 64 65 |lar, but| not ide| |00000120| 6e 74 69 63 61 6c 2c 20 | 74 6f 20 74 68 65 20 73 |ntical, |to the s| |00000130| 63 72 65 65 6e 20 6e 75 | 6d 62 65 72 20 69 6e 20 |creen nu|mber in | |00000140| 74 68 65 20 4d 6f 6e 69 | 74 6f 72 73 0d 43 6f 6e |the Moni|tors.Con| |00000150| 74 72 6f 6c 20 70 61 6e | 65 6c 2e 0d 0d 09 6e 3d |trol pan|el....n=| |00000160| 47 65 74 53 63 72 65 65 | 6e 49 6e 64 65 78 28 64 |GetScree|nIndex(d| |00000170| 65 76 69 63 65 29 3b 0d | 72 65 74 75 72 6e 73 20 |evice);.|returns | |00000180| 74 68 65 20 69 6e 76 65 | 72 73 65 20 6f 66 20 47 |the inve|rse of G| |00000190| 65 74 53 63 72 65 65 6e | 44 65 76 69 63 65 28 29 |etScreen|Device()| |000001a0| 2e 20 0d 0d 09 73 6c 6f | 74 3d 47 65 74 44 65 76 |. ...slo|t=GetDev| |000001b0| 69 63 65 53 6c 6f 74 28 | 64 65 76 69 63 65 29 3b |iceSlot(|device);| |000001c0| 0d 67 65 74 73 20 74 68 | 65 20 22 73 6c 6f 74 22 |.gets th|e "slot"| |000001d0| 20 66 6f 72 20 61 6e 79 | 20 73 63 72 65 65 6e 20 | for any| screen | |000001e0| 64 65 76 69 63 65 2e 20 | 0d 0d 09 64 65 76 69 63 |device. |...devic| |000001f0| 65 3d 53 6c 6f 74 54 6f | 53 63 72 65 65 6e 44 65 |e=SlotTo|ScreenDe| |00000200| 76 69 63 65 28 6e 29 3b | 0d 72 65 74 75 72 6e 73 |vice(n);|.returns| |00000210| 20 61 20 68 61 6e 64 6c | 65 20 74 6f 20 74 68 65 | a handl|e to the| |00000220| 20 73 63 72 65 65 6e 20 | 64 65 76 69 63 65 20 69 | screen |device i| |00000230| 6e 20 73 6c 6f 74 20 6e | 2e 20 0d 0d 09 64 65 76 |n slot n|. ...dev| |00000240| 69 63 65 3d 47 65 74 57 | 69 6e 64 6f 77 44 65 76 |ice=GetW|indowDev| |00000250| 69 63 65 28 77 69 6e 64 | 6f 77 29 3b 0d 72 65 74 |ice(wind|ow);.ret| |00000260| 75 72 6e 73 20 47 44 48 | 61 6e 64 6c 65 20 6f 66 |urns GDH|andle of| |00000270| 20 73 63 72 65 65 6e 20 | 77 69 74 68 20 6c 61 72 | screen |with lar| |00000280| 67 65 73 74 20 69 6e 74 | 65 72 73 65 63 74 69 6f |gest int|ersectio| |00000290| 6e 20 77 69 74 68 20 74 | 68 65 20 77 69 6e 64 6f |n with t|he windo| |000002a0| 77 27 73 20 63 6f 6e 74 | 65 6e 74 2e 0d 0d 09 47 |w's cont|ent....G| |000002b0| 44 48 61 6e 64 6c 65 09 | 47 65 74 44 65 76 69 63 |DHandle.|GetDevic| |000002c0| 65 42 79 52 65 66 4e 75 | 6d 28 69 6e 74 20 6e 29 |eByRefNu|m(int n)| |000002d0| 3b 0d 09 47 44 48 61 6e | 64 6c 65 09 47 65 74 52 |;..GDHan|dle.GetR| |000002e0| 65 63 74 44 65 76 69 63 | 65 28 52 65 63 74 20 2a |ectDevic|e(Rect *| |000002f0| 72 29 3b 0d 0d 09 76 6f | 69 64 09 09 4c 6f 63 61 |r);...vo|id..Loca| |00000300| 6c 54 6f 47 6c 6f 62 61 | 6c 52 65 63 74 28 52 65 |lToGloba|lRect(Re| |00000310| 63 74 20 2a 72 29 3b 0d | 09 76 6f 69 64 09 09 47 |ct *r);.|.void..G| |00000320| 6c 6f 62 61 6c 54 6f 4c | 6f 63 61 6c 52 65 63 74 |lobalToL|ocalRect| |00000330| 28 52 65 63 74 20 2a 72 | 29 3b 0d 0d 43 6f 70 79 |(Rect *r|);..Copy| |00000340| 72 69 67 68 74 20 a9 20 | 31 39 38 39 2d 31 39 39 |right . |1989-199| |00000350| 35 20 44 65 6e 69 73 20 | 47 2e 20 50 65 6c 6c 69 |5 Denis |G. Pelli| |00000360| 0d 48 49 53 54 4f 52 59 | 3a 0d 33 2f 32 30 2f 39 |.HISTORY|:.3/20/9| |00000370| 30 09 09 64 67 70 09 6d | 61 6b 65 20 63 6f 6d 70 |0..dgp.m|ake comp| |00000380| 61 74 69 62 6c 65 20 77 | 69 74 68 20 4d 50 57 20 |atible w|ith MPW | |00000390| 43 2e 0d 33 2f 32 32 2f | 39 30 09 64 67 70 09 63 |C..3/22/|90.dgp.c| |000003a0| 68 61 6e 67 65 64 20 47 | 65 74 44 65 76 69 63 65 |hanged G|etDevice| |000003b0| 53 6c 6f 74 20 74 6f 20 | 75 73 65 20 74 68 65 20 |Slot to |use the | |000003c0| 41 75 78 44 43 45 48 61 | 6e 64 6c 65 20 69 6e 73 |AuxDCEHa|ndle ins| |000003d0| 74 65 61 64 20 6f 66 20 | 64 65 64 75 63 69 6e 67 |tead of |deducing| |000003e0| 20 69 74 0d 09 09 09 66 | 72 6f 6d 20 74 68 65 20 | it....f|rom the | |000003f0| 62 61 73 65 41 64 64 72 | 20 6f 66 20 74 68 65 20 |baseAddr| of the | |00000400| 50 69 78 4d 61 70 2e 20 | 54 68 69 73 20 69 73 20 |PixMap. |This is | |00000410| 61 20 63 6c 65 61 6e 65 | 72 20 77 61 79 20 74 6f |a cleane|r way to| |00000420| 20 64 6f 20 69 74 2e 0d | 34 2f 39 2f 39 30 09 64 | do it..|4/9/90.d| |00000430| 67 70 09 65 6c 69 6d 69 | 6e 61 74 65 64 20 23 64 |gp.elimi|nated #d| |00000440| 65 66 69 6e 65 20 66 6f | 72 20 4d 61 69 6e 73 63 |efine fo|r Mainsc| |00000450| 72 6e 20 6d 69 73 70 65 | 6c 6c 69 6e 67 20 69 6e |rn mispe|lling in| |00000460| 20 43 6f 6c 6f 72 2e 68 | 0d 31 30 2f 31 37 2f 39 | Color.h|.10/17/9| |00000470| 30 20 64 67 70 20 41 64 | 64 65 64 20 41 64 64 72 |0 dgp Ad|ded Addr| |00000480| 65 73 73 54 6f 53 63 72 | 65 65 6e 44 65 76 69 63 |essToScr|eenDevic| |00000490| 65 28 29 20 66 6f 72 20 | 63 6f 6d 70 61 74 69 62 |e() for |compatib| |000004a0| 69 6c 69 74 79 20 77 69 | 74 68 20 62 75 69 6c 74 |ility wi|th built| |000004b0| 2d 69 6e 20 76 69 64 65 | 6f 20 6f 6e 0d 09 09 09 |-in vide|o on....| |000004c0| 74 68 65 20 4d 61 63 20 | 49 49 63 69 2c 20 49 49 |the Mac |IIci, II| |000004d0| 73 69 2c 20 61 6e 64 20 | 4c 43 2e 0d 31 30 2f 31 |si, and |LC..10/1| |000004e0| 38 2f 39 30 20 64 67 70 | 20 41 64 64 65 64 20 4c |8/90 dgp| Added L| |000004f0| 6f 63 61 6c 54 6f 47 6c | 6f 62 61 6c 52 65 63 74 |ocalToGl|obalRect| |00000500| 28 29 20 61 6e 64 20 47 | 65 74 57 69 6e 64 6f 77 |() and G|etWindow| |00000510| 44 65 76 69 63 65 28 29 | 2e 0d 38 2f 32 34 2f 39 |Device()|..8/24/9| |00000520| 31 09 09 64 67 70 09 4d | 61 64 65 20 63 6f 6d 70 |1..dgp.M|ade comp| |00000530| 61 74 69 62 6c 65 20 77 | 69 74 68 20 54 48 49 4e |atible w|ith THIN| |00000540| 4b 20 43 20 35 2e 30 2e | 0d 32 2f 31 2f 39 32 09 |K C 5.0.|.2/1/92.| |00000550| 64 67 70 09 46 69 78 65 | 64 20 62 75 67 73 20 69 |dgp.Fixe|d bugs i| |00000560| 6e 20 47 65 74 57 69 6e | 64 6f 77 44 65 76 69 63 |n GetWin|dowDevic| |00000570| 65 28 29 20 77 68 69 63 | 68 20 72 65 73 75 6c 74 |e() whic|h result| |00000580| 65 64 20 69 6e 20 72 65 | 74 75 72 6e 69 6e 67 20 |ed in re|turning | |00000590| 67 61 72 62 61 67 65 20 | 47 44 48 61 6e 64 6c 65 |garbage |GDHandle| |000005a0| 2e 0d 33 2f 33 2f 39 32 | 09 64 67 70 09 49 6e 20 |..3/3/92|.dgp.In | |000005b0| 47 65 74 53 63 72 65 65 | 6e 44 65 76 69 63 65 28 |GetScree|nDevice(| |000005c0| 29 2c 20 73 6b 69 70 20 | 69 6e 61 63 74 69 76 65 |), skip |inactive| |000005d0| 20 73 63 72 65 65 6e 73 | 2e 0d 38 2f 32 30 2f 39 | screens|..8/20/9| |000005e0| 32 09 64 67 70 09 65 78 | 70 61 6e 64 65 64 20 63 |2.dgp.ex|panded c| |000005f0| 6f 6d 6d 65 6e 74 73 20 | 6f 66 20 47 65 74 44 65 |omments |of GetDe| |00000600| 76 69 63 65 53 6c 6f 74 | 28 29 2c 20 6e 6f 74 69 |viceSlot|(), noti| |00000610| 6e 67 20 74 68 61 74 20 | 69 74 20 77 6f 72 6b 73 |ng that |it works| |00000620| 20 65 76 65 6e 20 77 69 | 74 68 0d 09 09 09 62 75 | even wi|th....bu| |00000630| 69 6c 74 2d 69 6e 20 76 | 69 64 65 6f 2c 20 65 2e |ilt-in v|ideo, e.| |00000640| 67 2e 20 6f 6e 20 4d 61 | 63 20 49 49 63 69 2e 0d |g. on Ma|c IIci..| |00000650| 38 2f 32 36 2f 39 32 09 | 64 67 70 09 47 65 74 44 |8/26/92.|dgp.GetD| |00000660| 65 76 69 63 65 53 6c 6f | 74 28 29 20 6e 6f 77 20 |eviceSlo|t() now | |00000670| 72 65 74 75 72 6e 73 20 | 2d 31 20 69 66 20 6e 6f |returns |-1 if no| |00000680| 6e 65 2c 20 73 69 6e 63 | 65 20 7a 65 72 6f 20 69 |ne, sinc|e zero i| |00000690| 73 20 61 20 6c 65 67 61 | 6c 20 73 6c 6f 74 2e 0d |s a lega|l slot..| |000006a0| 09 09 09 47 65 74 53 63 | 72 65 65 6e 44 65 76 69 |...GetSc|reenDevi| |000006b0| 63 65 28 29 20 66 69 72 | 73 74 20 63 68 65 63 6b |ce() fir|st check| |000006c0| 73 20 66 6f 72 20 38 2d | 62 69 74 20 51 75 69 63 |s for 8-|bit Quic| |000006d0| 6b 44 72 61 77 28 29 2e | 0d 39 2f 31 30 2f 39 32 |kDraw().|.9/10/92| |000006e0| 09 64 67 70 09 41 63 74 | 75 61 6c 6c 79 20 69 6d |.dgp.Act|ually im| |000006f0| 70 6c 65 6d 65 6e 74 65 | 64 20 74 68 65 20 38 2f |plemente|d the 8/| |00000700| 32 36 20 63 68 61 6e 67 | 65 20 69 6e 73 74 65 61 |26 chang|e instea| |00000710| 64 20 6f 66 20 6a 75 73 | 74 20 63 68 61 6e 67 69 |d of jus|t changi| |00000720| 6e 67 20 74 68 65 20 0d | 09 09 09 64 6f 63 75 6d |ng the .|...docum| |00000730| 65 6e 74 61 74 69 6f 6e | 2e 20 4f 6f 70 73 2e 0d |entation|. Oops..| |00000740| 34 2f 31 37 2f 39 33 09 | 64 67 70 20 44 65 6c 65 |4/17/93.|dgp Dele| |00000750| 74 65 64 20 6f 62 73 6f | 6c 65 74 65 20 41 64 64 |ted obso|lete Add| |00000760| 72 65 73 73 54 6f 53 6c | 6f 74 20 61 6e 64 20 41 |ressToSl|ot and A| |00000770| 64 64 72 65 73 73 54 6f | 53 63 72 65 65 6e 44 65 |ddressTo|ScreenDe| |00000780| 76 69 63 65 2e 0d 35 2f | 32 31 2f 39 33 09 64 67 |vice..5/|21/93.dg| |00000790| 70 09 46 69 78 65 64 20 | 47 65 74 57 69 6e 64 6f |p.Fixed |GetWindo| |000007a0| 77 44 65 76 69 63 65 28 | 29 20 74 6f 20 73 75 70 |wDevice(|) to sup| |000007b0| 70 6f 72 74 20 47 57 6f | 72 6c 64 27 73 2e 0d 38 |port GWo|rld's..8| |000007c0| 2f 31 34 2f 39 33 09 64 | 67 70 09 42 61 73 65 64 |/14/93.d|gp.Based| |000007d0| 20 6f 6e 20 61 6e 73 77 | 65 72 20 66 72 6f 6d 20 | on answ|er from | |000007e0| 44 45 56 53 55 50 50 4f | 52 54 2c 20 49 20 63 6c |DEVSUPPO|RT, I cl| |000007f0| 65 61 6e 65 64 20 75 70 | 20 47 65 74 57 69 6e 64 |eaned up| GetWind| |00000800| 6f 77 44 65 76 69 63 65 | 28 29 2e 0d 34 2f 31 31 |owDevice|()..4/11| |00000810| 2f 39 34 09 64 67 70 09 | 41 64 64 65 64 20 47 65 |/94.dgp.|Added Ge| |00000820| 74 52 65 63 74 44 65 76 | 69 63 65 28 29 20 62 61 |tRectDev|ice() ba| |00000830| 73 65 64 20 6f 6e 20 63 | 6f 64 65 20 65 78 74 72 |sed on c|ode extr| |00000840| 61 63 74 65 64 20 66 72 | 6f 6d 20 47 65 74 57 69 |acted fr|om GetWi| |00000850| 6e 64 6f 77 44 65 76 69 | 63 65 28 29 2e 0d 31 31 |ndowDevi|ce()..11| |00000860| 2f 33 30 2f 39 34 20 64 | 67 70 20 61 64 64 65 64 |/30/94 d|gp added| |00000870| 20 47 65 74 44 65 76 69 | 63 65 42 79 52 65 66 4e | GetDevi|ceByRefN| |00000880| 75 6d 28 29 2e 0d 36 2f | 31 2f 39 35 20 64 67 70 |um()..6/|1/95 dgp| |00000890| 20 6d 6f 76 65 64 20 4c | 6f 63 61 6c 54 6f 47 6c | moved L|ocalToGl| |000008a0| 6f 62 61 6c 52 65 63 74 | 28 29 20 61 6e 64 20 47 |obalRect|() and G| |000008b0| 6c 6f 62 61 6c 54 6f 4c | 6f 63 61 6c 52 65 63 74 |lobalToL|ocalRect| |000008c0| 28 29 20 74 6f 20 43 65 | 6e 74 65 72 52 65 63 74 |() to Ce|nterRect| |000008d0| 49 6e 52 65 63 74 2e 63 | 0d 31 30 2f 34 2f 39 35 |InRect.c|.10/4/95| |000008e0| 20 64 67 70 20 47 65 74 | 44 65 76 69 63 65 53 6c | dgp Get|DeviceSl| |000008f0| 6f 74 28 29 20 6e 6f 77 | 73 20 63 68 65 63 6b 73 |ot() now|s checks| |00000900| 20 66 6f 72 20 70 72 65 | 73 65 6e 63 65 20 6f 66 | for pre|sence of| |00000910| 20 53 6c 6f 74 20 4d 61 | 6e 61 67 65 72 20 61 6e | Slot Ma|nager an| |00000920| 64 20 72 65 74 75 72 6e | 73 20 2d 31 20 69 66 20 |d return|s -1 if | |00000930| 69 74 27 73 20 61 62 73 | 65 6e 74 2e 0d 31 30 2f |it's abs|ent..10/| |00000940| 31 34 2f 39 35 20 64 67 | 70 20 61 64 64 65 64 20 |14/95 dg|p added | |00000950| 47 65 74 44 65 76 69 63 | 65 53 6c 6f 74 4e 61 6d |GetDevic|eSlotNam| |00000960| 65 28 29 2c 20 77 68 69 | 63 68 20 77 6f 72 6b 73 |e(), whi|ch works| |00000970| 20 6f 6e 20 61 6c 6c 20 | 4d 61 63 73 2c 20 69 6e | on all |Macs, in| |00000980| 63 6c 75 64 69 6e 67 20 | 50 43 49 2e 0d 2a 2f 0d |cluding |PCI..*/.| |00000990| 23 69 6e 63 6c 75 64 65 | 20 22 56 69 64 65 6f 54 |#include| "VideoT| |000009a0| 6f 6f 6c 62 6f 78 2e 68 | 22 0d 76 6f 69 64 20 47 |oolbox.h|".void G| |000009b0| 65 74 56 69 64 65 6f 50 | 72 6f 70 65 72 74 69 65 |etVideoP|ropertie| |000009c0| 73 28 47 44 48 61 6e 64 | 6c 65 20 64 65 76 69 63 |s(GDHand|le devic| |000009d0| 65 2c 63 68 61 72 20 2a | 73 6c 6f 74 4e 61 6d 65 |e,char *|slotName| |000009e0| 2c 63 68 61 72 20 2a 63 | 61 72 64 4e 61 6d 65 2c |,char *c|ardName,| |000009f0| 63 68 61 72 20 2a 6d 6f | 64 65 6c 4e 61 6d 65 29 |char *mo|delName)| |00000a00| 3b 0d 63 68 61 72 20 2a | 47 65 74 44 65 76 69 63 |;.char *|GetDevic| |00000a10| 65 53 6c 6f 74 4e 61 6d | 65 28 47 44 48 61 6e 64 |eSlotNam|e(GDHand| |00000a20| 6c 65 20 64 65 76 69 63 | 65 29 3b 0d 0d 47 44 48 |le devic|e);..GDH| |00000a30| 61 6e 64 6c 65 20 47 65 | 74 53 63 72 65 65 6e 44 |andle Ge|tScreenD| |00000a40| 65 76 69 63 65 28 69 6e | 74 20 6e 29 0d 2f 2f 20 |evice(in|t n).// | |00000a50| 52 65 74 75 72 6e 73 20 | 61 20 68 61 6e 64 6c 65 |Returns |a handle| |00000a60| 20 74 6f 20 74 68 65 20 | 6e 2d 74 68 20 73 63 72 | to the |n-th scr| |00000a70| 65 65 6e 2c 20 77 68 65 | 72 65 20 74 68 65 20 4d |een, whe|re the M| |00000a80| 61 69 6e 44 65 76 69 63 | 65 20 69 73 20 74 68 65 |ainDevic|e is the| |00000a90| 20 7a 65 72 6f 2d 74 68 | 20 73 63 72 65 65 6e 2e | zero-th| screen.| |00000aa0| 0d 2f 2f 20 52 65 74 75 | 72 6e 73 20 4e 55 4c 4c |.// Retu|rns NULL| |00000ab0| 20 69 66 20 72 65 71 75 | 65 73 74 20 63 61 6e 27 | if requ|est can'| |00000ac0| 74 20 62 65 20 73 61 74 | 69 73 66 69 65 64 2e 0d |t be sat|isfied..| |00000ad0| 7b 0d 09 47 44 48 61 6e | 64 6c 65 20 64 65 76 69 |{..GDHan|dle devi| |00000ae0| 63 65 3b 0d 09 69 6e 74 | 20 69 2c 65 72 72 6f 72 |ce;..int| i,error| |00000af0| 3b 0d 09 6c 6f 6e 67 20 | 76 61 6c 75 65 3b 0d 0d |;..long |value;..| |00000b00| 09 69 66 28 6e 3c 30 29 | 72 65 74 75 72 6e 20 4e |.if(n<0)|return N| |00000b10| 55 4c 4c 3b 0d 09 65 72 | 72 6f 72 3d 47 65 73 74 |ULL;..er|ror=Gest| |00000b20| 61 6c 74 28 67 65 73 74 | 61 6c 74 51 75 69 63 6b |alt(gest|altQuick| |00000b30| 64 72 61 77 56 65 72 73 | 69 6f 6e 2c 26 76 61 6c |drawVers|ion,&val| |00000b40| 75 65 29 3b 0d 09 69 66 | 28 65 72 72 6f 72 20 7c |ue);..if|(error || |00000b50| 7c 20 76 61 6c 75 65 3c | 67 65 73 74 61 6c 74 38 || value<|gestalt8| |00000b60| 42 69 74 51 44 29 72 65 | 74 75 72 6e 20 4e 55 4c |BitQD)re|turn NUL| |00000b70| 4c 3b 09 2f 2f 20 6e 65 | 65 64 20 38 2d 62 69 74 |L;.// ne|ed 8-bit| |00000b80| 20 71 75 69 63 6b 64 72 | 61 77 0d 09 69 66 28 6e | quickdr|aw..if(n| |00000b90| 3d 3d 30 29 20 72 65 74 | 75 72 6e 20 47 65 74 4d |==0) ret|urn GetM| |00000ba0| 61 69 6e 44 65 76 69 63 | 65 28 29 3b 0d 09 64 65 |ainDevic|e();..de| |00000bb0| 76 69 63 65 3d 47 65 74 | 44 65 76 69 63 65 4c 69 |vice=Get|DeviceLi| |00000bc0| 73 74 28 29 3b 0d 09 69 | 3d 30 3b 0d 09 77 68 69 |st();..i|=0;..whi| |00000bd0| 6c 65 28 64 65 76 69 63 | 65 21 3d 4e 55 4c 4c 29 |le(devic|e!=NULL)| |00000be0| 7b 0d 09 09 69 66 20 28 | 54 65 73 74 44 65 76 69 |{...if (|TestDevi| |00000bf0| 63 65 41 74 74 72 69 62 | 75 74 65 28 64 65 76 69 |ceAttrib|ute(devi| |00000c00| 63 65 2c 73 63 72 65 65 | 6e 44 65 76 69 63 65 29 |ce,scree|nDevice)| |00000c10| 0d 09 09 09 26 26 20 21 | 54 65 73 74 44 65 76 69 |....&& !|TestDevi| |00000c20| 63 65 41 74 74 72 69 62 | 75 74 65 28 64 65 76 69 |ceAttrib|ute(devi| |00000c30| 63 65 2c 6d 61 69 6e 53 | 63 72 65 65 6e 29 0d 09 |ce,mainS|creen)..| |00000c40| 09 09 26 26 20 54 65 73 | 74 44 65 76 69 63 65 41 |..&& Tes|tDeviceA| |00000c50| 74 74 72 69 62 75 74 65 | 28 64 65 76 69 63 65 2c |ttribute|(device,| |00000c60| 73 63 72 65 65 6e 41 63 | 74 69 76 65 29 29 7b 0d |screenAc|tive)){.| |00000c70| 09 09 09 09 69 2b 2b 3b | 0d 09 09 09 09 69 66 28 |....i++;|.....if(| |00000c80| 69 3d 3d 6e 29 62 72 65 | 61 6b 3b 0d 09 09 09 7d |i==n)bre|ak;....}| |00000c90| 0d 09 09 64 65 76 69 63 | 65 20 3d 20 47 65 74 4e |...devic|e = GetN| |00000ca0| 65 78 74 44 65 76 69 63 | 65 28 64 65 76 69 63 65 |extDevic|e(device| |00000cb0| 29 3b 0d 09 7d 0d 09 72 | 65 74 75 72 6e 20 64 65 |);..}..r|eturn de| |00000cc0| 76 69 63 65 3b 0d 7d 0d | 0d 47 44 48 61 6e 64 6c |vice;.}.|.GDHandl| |00000cd0| 65 20 47 65 74 44 65 76 | 69 63 65 42 79 52 65 66 |e GetDev|iceByRef| |00000ce0| 4e 75 6d 28 69 6e 74 20 | 6e 29 0d 7b 0d 09 69 6e |Num(int |n).{..in| |00000cf0| 74 20 6a 3b 0d 09 47 44 | 48 61 6e 64 6c 65 20 64 |t j;..GD|Handle d| |00000d00| 65 76 69 63 65 3b 0d 0d | 09 66 6f 72 28 6a 3d 30 |evice;..|.for(j=0| |00000d10| 3b 3b 6a 2b 2b 29 7b 0d | 09 09 64 65 76 69 63 65 |;;j++){.|..device| |00000d20| 3d 47 65 74 53 63 72 65 | 65 6e 44 65 76 69 63 65 |=GetScre|enDevice| |00000d30| 28 6a 29 3b 0d 09 09 69 | 66 28 64 65 76 69 63 65 |(j);...i|f(device| |00000d40| 3d 3d 4e 55 4c 4c 20 7c | 7c 20 6e 3d 3d 28 2a 2a |==NULL ||| n==(**| |00000d50| 64 65 76 69 63 65 29 2e | 67 64 52 65 66 4e 75 6d |device).|gdRefNum| |00000d60| 29 62 72 65 61 6b 3b 0d | 09 7d 0d 09 72 65 74 75 |)break;.|.}..retu| |00000d70| 72 6e 20 64 65 76 69 63 | 65 3b 0d 7d 0d 0d 69 6e |rn devic|e;.}..in| |00000d80| 74 20 47 65 74 53 63 72 | 65 65 6e 49 6e 64 65 78 |t GetScr|eenIndex| |00000d90| 28 47 44 48 61 6e 64 6c | 65 20 64 65 76 69 63 65 |(GDHandl|e device| |00000da0| 29 0d 2f 2f 20 49 6e 76 | 65 72 73 65 20 6f 66 20 |).// Inv|erse of | |00000db0| 47 65 74 53 63 72 65 65 | 6e 44 65 76 69 63 65 28 |GetScree|nDevice(| |00000dc0| 29 2e 20 52 65 74 75 72 | 6e 73 20 2d 31 20 69 66 |). Retur|ns -1 if| |00000dd0| 20 72 65 71 75 65 73 74 | 20 63 61 6e 27 74 20 62 | request| can't b| |00000de0| 65 20 73 61 74 69 73 66 | 69 65 64 2e 0d 7b 0d 09 |e satisf|ied..{..| |00000df0| 69 6e 74 20 69 2c 65 72 | 72 6f 72 3b 0d 09 6c 6f |int i,er|ror;..lo| |00000e00| 6e 67 20 76 61 6c 75 65 | 3b 0d 0d 09 65 72 72 6f |ng value|;...erro| |00000e10| 72 3d 47 65 73 74 61 6c | 74 28 67 65 73 74 61 6c |r=Gestal|t(gestal| |00000e20| 74 51 75 69 63 6b 64 72 | 61 77 56 65 72 73 69 6f |tQuickdr|awVersio| |00000e30| 6e 2c 26 76 61 6c 75 65 | 29 3b 0d 09 69 66 28 65 |n,&value|);..if(e| |00000e40| 72 72 6f 72 20 7c 7c 20 | 76 61 6c 75 65 3c 67 65 |rror || |value<ge| |00000e50| 73 74 61 6c 74 38 42 69 | 74 51 44 29 72 65 74 75 |stalt8Bi|tQD)retu| |00000e60| 72 6e 20 30 3b 0d 09 69 | 66 28 64 65 76 69 63 65 |rn 0;..i|f(device| |00000e70| 3d 3d 4e 55 4c 4c 29 72 | 65 74 75 72 6e 20 2d 31 |==NULL)r|eturn -1| |00000e80| 3b 0d 09 66 6f 72 28 69 | 3d 30 3b 69 3c 31 36 3b |;..for(i|=0;i<16;| |00000e90| 69 2b 2b 29 69 66 28 64 | 65 76 69 63 65 3d 3d 47 |i++)if(d|evice==G| |00000ea0| 65 74 53 63 72 65 65 6e | 44 65 76 69 63 65 28 69 |etScreen|Device(i| |00000eb0| 29 29 72 65 74 75 72 6e | 20 69 3b 0d 09 72 65 74 |))return| i;..ret| |00000ec0| 75 72 6e 20 2d 31 3b 0d | 7d 0d 0d 73 68 6f 72 74 |urn -1;.|}..short| |00000ed0| 20 69 6e 74 20 47 65 74 | 44 65 76 69 63 65 53 6c | int Get|DeviceSl| |00000ee0| 6f 74 28 47 44 48 61 6e | 64 6c 65 20 64 65 76 69 |ot(GDHan|dle devi| |00000ef0| 63 65 29 0d 2f 2f 20 47 | 65 74 73 20 74 68 65 20 |ce).// G|ets the | |00000f00| 22 73 6c 6f 74 22 20 66 | 6f 72 20 61 6e 79 20 73 |"slot" f|or any s| |00000f10| 63 72 65 65 6e 20 64 65 | 76 69 63 65 2c 20 65 76 |creen de|vice, ev| |00000f20| 65 6e 20 69 66 20 69 74 | 27 73 20 62 75 69 6c 74 |en if it|'s built| |00000f30| 2d 69 6e 20 76 69 64 65 | 6f 2c 20 65 2e 67 2e 20 |-in vide|o, e.g. | |00000f40| 6f 6e 20 4d 61 63 0d 2f | 2f 20 49 49 63 69 20 6f |on Mac./|/ IIci o| |00000f50| 72 20 51 75 61 64 72 61 | 2e 20 53 65 65 20 31 39 |r Quadra|. See 19| |00000f60| 39 32 20 49 6e 73 69 64 | 65 20 4d 61 63 20 22 50 |92 Insid|e Mac "P| |00000f70| 72 6f 63 65 73 73 65 73 | 22 20 70 61 67 65 20 34 |rocesses|" page 4| |00000f80| 2d 31 31 2e 20 52 65 74 | 75 72 6e 73 20 2d 31 20 |-11. Ret|urns -1 | |00000f90| 69 66 20 6e 6f 6e 65 2e | 0d 2f 2f 20 5a 65 72 6f |if none.|.// Zero| |00000fa0| 20 69 73 20 61 20 6c 65 | 67 61 6c 20 73 6c 6f 74 | is a le|gal slot| |00000fb0| 20 66 6f 72 20 62 75 69 | 6c 74 2d 69 6e 20 76 69 | for bui|lt-in vi| |00000fc0| 64 65 6f 20 64 65 76 69 | 63 65 73 2e 0d 2f 2f 20 |deo devi|ces..// | |00000fd0| 57 41 52 4e 49 4e 47 3a | 20 67 69 76 65 73 20 6e |WARNING:| gives n| |00000fe0| 6f 6e 73 65 6e 73 65 20 | 61 6e 73 77 65 72 20 6f |onsense |answer o| |00000ff0| 6e 20 50 43 49 20 4d 61 | 63 73 2e 20 55 73 65 20 |n PCI Ma|cs. Use | |00001000| 47 65 74 44 65 76 69 63 | 65 53 6c 6f 74 4e 61 6d |GetDevic|eSlotNam| |00001010| 65 28 29 20 69 6e 73 74 | 65 61 64 2e 0d 7b 0d 09 |e() inst|ead..{..| |00001020| 41 75 78 44 43 45 48 61 | 6e 64 6c 65 20 6d 79 41 |AuxDCEHa|ndle myA| |00001030| 75 78 44 43 45 48 61 6e | 64 6c 65 3b 0d 20 20 20 |uxDCEHan|dle;. | |00001040| 20 53 70 42 6c 6f 63 6b | 20 73 70 42 6c 6f 63 6b | SpBlock| spBlock| |00001050| 3b 0d 20 20 20 20 42 6f | 6f 6c 65 61 6e 20 73 6c |;. Bo|olean sl| |00001060| 6f 74 4d 67 72 50 72 65 | 73 65 6e 74 3b 0d 20 20 |otMgrPre|sent;. | |00001070| 20 20 0d 09 69 66 28 54 | 72 61 70 41 76 61 69 6c | ..if(T|rapAvail| |00001080| 61 62 6c 65 28 5f 53 6c | 6f 74 4d 61 6e 61 67 65 |able(_Sl|otManage| |00001090| 72 29 29 73 6c 6f 74 4d | 67 72 50 72 65 73 65 6e |r))slotM|grPresen| |000010a0| 74 3d 28 53 56 65 72 73 | 69 6f 6e 28 26 73 70 42 |t=(SVers|ion(&spB| |000010b0| 6c 6f 63 6b 29 3d 3d 6e | 6f 45 72 72 29 3b 0d 09 |lock)==n|oErr);..| |000010c0| 65 6c 73 65 20 73 6c 6f | 74 4d 67 72 50 72 65 73 |else slo|tMgrPres| |000010d0| 65 6e 74 3d 30 3b 0d 09 | 69 66 28 21 73 6c 6f 74 |ent=0;..|if(!slot| |000010e0| 4d 67 72 50 72 65 73 65 | 6e 74 20 7c 7c 20 64 65 |MgrPrese|nt || de| |000010f0| 76 69 63 65 3d 3d 4e 55 | 4c 4c 20 7c 7c 20 28 2a |vice==NU|LL || (*| |00001100| 64 65 76 69 63 65 29 2d | 3e 67 64 52 65 66 4e 75 |device)-|>gdRefNu| |00001110| 6d 3d 3d 30 29 72 65 74 | 75 72 6e 20 2d 31 3b 0d |m==0)ret|urn -1;.| |00001120| 0d 09 6d 79 41 75 78 44 | 43 45 48 61 6e 64 6c 65 |..myAuxD|CEHandle| |00001130| 3d 28 41 75 78 44 43 45 | 48 61 6e 64 6c 65 29 20 |=(AuxDCE|Handle) | |00001140| 47 65 74 44 43 74 6c 45 | 6e 74 72 79 28 28 2a 2a |GetDCtlE|ntry((**| |00001150| 64 65 76 69 63 65 29 2e | 67 64 52 65 66 4e 75 6d |device).|gdRefNum| |00001160| 29 3b 0d 09 72 65 74 75 | 72 6e 20 28 28 2a 2a 6d |);..retu|rn ((**m| |00001170| 79 41 75 78 44 43 45 48 | 61 6e 64 6c 65 29 2e 64 |yAuxDCEH|andle).d| |00001180| 43 74 6c 53 6c 6f 74 29 | 3b 0d 7d 0d 0d 63 68 61 |CtlSlot)|;.}..cha| |00001190| 72 20 2a 47 65 74 44 65 | 76 69 63 65 53 6c 6f 74 |r *GetDe|viceSlot| |000011a0| 4e 61 6d 65 28 47 44 48 | 61 6e 64 6c 65 20 64 65 |Name(GDH|andle de| |000011b0| 76 69 63 65 29 0d 2f 2f | 20 47 65 74 73 20 74 68 |vice).//| Gets th| |000011c0| 65 20 22 73 6c 6f 74 22 | 20 6e 61 6d 65 20 66 6f |e "slot"| name fo| |000011d0| 72 20 61 6e 79 20 73 63 | 72 65 65 6e 20 64 65 76 |r any sc|reen dev| |000011e0| 69 63 65 2c 20 65 76 65 | 6e 20 62 75 69 6c 74 2d |ice, eve|n built-| |000011f0| 69 6e 20 76 69 64 65 6f | 2c 20 6f 6e 20 4d 61 63 |in video|, on Mac| |00001200| 73 20 77 69 74 68 20 4e | 75 42 75 73 2c 20 0d 2f |s with N|uBus, ./| |00001210| 2f 20 50 43 49 20 62 75 | 73 2c 20 61 6e 64 20 6e |/ PCI bu|s, and n| |00001220| 6f 20 62 75 73 2e 20 52 | 65 74 75 72 6e 73 20 22 |o bus. R|eturns "| |00001230| 22 20 69 66 20 6e 6f 6e | 65 2e 0d 2f 2f 20 5a 65 |" if non|e..// Ze| |00001240| 72 6f 20 69 73 20 61 20 | 6c 65 67 61 6c 20 73 6c |ro is a |legal sl| |00001250| 6f 74 20 66 6f 72 20 62 | 75 69 6c 74 2d 69 6e 20 |ot for b|uilt-in | |00001260| 76 69 64 65 6f 20 64 65 | 76 69 63 65 73 2e 0d 7b |video de|vices..{| |00001270| 0d 09 73 74 61 74 69 63 | 20 63 68 61 72 20 73 6c |..static| char sl| |00001280| 6f 74 4e 61 6d 65 5b 33 | 32 5d 3d 22 22 3b 0d 09 |otName[3|2]="";..| |00001290| 63 68 61 72 20 63 61 72 | 64 4e 61 6d 65 5b 33 32 |char car|dName[32| |000012a0| 5d 2c 6d 6f 64 65 6c 4e | 61 6d 65 5b 33 32 5d 3b |],modelN|ame[32];| |000012b0| 0d 20 20 20 20 0d 09 69 | 66 28 64 65 76 69 63 65 |. ..i|f(device| |000012c0| 3d 3d 4e 55 4c 4c 20 7c | 7c 20 28 2a 64 65 76 69 |==NULL ||| (*devi| |000012d0| 63 65 29 2d 3e 67 64 52 | 65 66 4e 75 6d 3d 3d 30 |ce)->gdR|efNum==0| |000012e0| 29 72 65 74 75 72 6e 20 | 22 22 3b 0d 09 47 65 74 |)return |"";..Get| |000012f0| 56 69 64 65 6f 50 72 6f | 70 65 72 74 69 65 73 28 |VideoPro|perties(| |00001300| 64 65 76 69 63 65 2c 73 | 6c 6f 74 4e 61 6d 65 2c |device,s|lotName,| |00001310| 63 61 72 64 4e 61 6d 65 | 2c 6d 6f 64 65 6c 4e 61 |cardName|,modelNa| |00001320| 6d 65 29 3b 0d 09 69 66 | 28 73 74 72 6c 65 6e 28 |me);..if|(strlen(| |00001330| 63 61 72 64 4e 61 6d 65 | 29 3d 3d 30 29 73 70 72 |cardName|)==0)spr| |00001340| 69 6e 74 66 28 73 6c 6f | 74 4e 61 6d 65 2c 22 25 |intf(slo|tName,"%| |00001350| 64 22 2c 28 69 6e 74 29 | 47 65 74 44 65 76 69 63 |d",(int)|GetDevic| |00001360| 65 53 6c 6f 74 28 64 65 | 76 69 63 65 29 29 3b 0d |eSlot(de|vice));.| |00001370| 09 72 65 74 75 72 6e 20 | 73 6c 6f 74 4e 61 6d 65 |.return |slotName| |00001380| 3b 0d 7d 0d 0d 47 44 48 | 61 6e 64 6c 65 20 53 6c |;.}..GDH|andle Sl| |00001390| 6f 74 54 6f 53 63 72 65 | 65 6e 44 65 76 69 63 65 |otToScre|enDevice| |000013a0| 28 69 6e 74 20 6e 29 0d | 2f 2f 20 52 65 74 75 72 |(int n).|// Retur| |000013b0| 6e 73 20 61 20 68 61 6e | 64 6c 65 20 74 6f 20 74 |ns a han|dle to t| |000013c0| 68 65 20 73 63 72 65 65 | 6e 20 64 65 76 69 63 65 |he scree|n device| |000013d0| 20 69 6e 20 73 6c 6f 74 | 20 6e 2e 0d 2f 2f 20 52 | in slot| n..// R| |000013e0| 65 74 75 72 6e 73 20 4e | 55 4c 4c 20 69 66 20 72 |eturns N|ULL if r| |000013f0| 65 71 75 65 73 74 20 63 | 61 6e 27 74 20 62 65 20 |equest c|an't be | |00001400| 73 61 74 69 73 66 69 65 | 64 2e 0d 7b 0d 09 47 44 |satisfie|d..{..GD| |00001410| 48 61 6e 64 6c 65 20 64 | 65 76 69 63 65 3b 0d 0d |Handle d|evice;..| |00001420| 09 64 65 76 69 63 65 3d | 47 65 74 44 65 76 69 63 |.device=|GetDevic| |00001430| 65 4c 69 73 74 28 29 3b | 0d 09 77 68 69 6c 65 28 |eList();|..while(| |00001440| 64 65 76 69 63 65 21 3d | 4e 55 4c 4c 29 20 7b 0d |device!=|NULL) {.| |00001450| 09 09 69 66 20 28 54 65 | 73 74 44 65 76 69 63 65 |..if (Te|stDevice| |00001460| 41 74 74 72 69 62 75 74 | 65 28 64 65 76 69 63 65 |Attribut|e(device| |00001470| 2c 73 63 72 65 65 6e 44 | 65 76 69 63 65 29 20 26 |,screenD|evice) &| |00001480| 26 0d 09 09 09 47 65 74 | 44 65 76 69 63 65 53 6c |&....Get|DeviceSl| |00001490| 6f 74 28 64 65 76 69 63 | 65 29 3d 3d 6e 29 0d 09 |ot(devic|e)==n)..| |000014a0| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 64 65 76 69 |...break|;...devi| |000014b0| 63 65 3d 47 65 74 4e 65 | 78 74 44 65 76 69 63 65 |ce=GetNe|xtDevice| |000014c0| 28 64 65 76 69 63 65 29 | 3b 0d 09 7d 0d 09 72 65 |(device)|;..}..re| |000014d0| 74 75 72 6e 20 64 65 76 | 69 63 65 3b 0d 7d 0d 0d |turn dev|ice;.}..| |000014e0| 47 44 48 61 6e 64 6c 65 | 20 47 65 74 57 69 6e 64 |GDHandle| GetWind| |000014f0| 6f 77 44 65 76 69 63 65 | 28 57 69 6e 64 6f 77 50 |owDevice|(WindowP| |00001500| 74 72 20 77 69 6e 64 6f | 77 29 0d 2f 2f 20 46 6f |tr windo|w).// Fo| |00001510| 72 20 6f 6e 2d 73 63 72 | 65 65 6e 20 77 69 6e 64 |r on-scr|een wind| |00001520| 6f 77 2c 20 72 65 74 75 | 72 6e 73 20 47 44 48 61 |ow, retu|rns GDHa| |00001530| 6e 64 6c 65 20 6f 66 20 | 73 63 72 65 65 6e 20 77 |ndle of |screen w| |00001540| 69 74 68 20 6c 61 72 67 | 65 73 74 20 69 6e 74 65 |ith larg|est inte| |00001550| 72 73 65 63 74 69 6f 6e | 20 77 69 74 68 20 74 68 |rsection| with th| |00001560| 65 20 0d 2f 2f 20 77 69 | 6e 64 6f 77 27 73 20 63 |e .// wi|ndow's c| |00001570| 6f 6e 74 65 6e 74 2e 0d | 2f 2f 20 46 6f 72 20 6f |ontent..|// For o| |00001580| 66 66 2d 73 63 72 65 65 | 6e 20 77 69 6e 64 6f 77 |ff-scree|n window| |00001590| 20 28 69 2e 65 2e 20 47 | 57 6f 72 6c 64 29 2c 20 | (i.e. G|World), | |000015a0| 69 74 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 47 |it retur|ns the G| |000015b0| 44 48 61 6e 64 6c 65 20 | 6f 66 20 74 68 65 20 61 |DHandle |of the a| |000015c0| 73 73 6f 63 69 61 74 65 | 64 20 64 65 76 69 63 65 |ssociate|d device| |000015d0| 2e 0d 7b 0d 09 52 65 63 | 74 20 72 3b 0d 09 57 69 |..{..Rec|t r;..Wi| |000015e0| 6e 64 6f 77 50 74 72 20 | 6f 6c 64 57 69 6e 64 6f |ndowPtr |oldWindo| |000015f0| 77 3b 0d 09 6c 6f 6e 67 | 20 71 44 3b 0d 0d 09 69 |w;..long| qD;...i| |00001600| 66 28 77 69 6e 64 6f 77 | 3d 3d 4e 55 4c 4c 29 72 |f(window|==NULL)r| |00001610| 65 74 75 72 6e 20 4e 55 | 4c 4c 3b 0d 09 47 65 73 |eturn NU|LL;..Ges| |00001620| 74 61 6c 74 28 67 65 73 | 74 61 6c 74 51 75 69 63 |talt(ges|taltQuic| |00001630| 6b 64 72 61 77 56 65 72 | 73 69 6f 6e 2c 26 71 44 |kdrawVer|sion,&qD| |00001640| 29 3b 0d 09 69 66 28 71 | 44 3e 3d 67 65 73 74 61 |);..if(q|D>=gesta| |00001650| 6c 74 33 32 42 69 74 51 | 44 20 26 26 20 28 28 28 |lt32BitQ|D && (((| |00001660| 43 57 69 6e 64 6f 77 50 | 74 72 29 77 69 6e 64 6f |CWindowP|tr)windo| |00001670| 77 29 2d 3e 70 6f 72 74 | 56 65 72 73 69 6f 6e 26 |w)->port|Version&| |00001680| 30 78 63 30 30 31 29 3d | 3d 30 78 63 30 30 31 29 |0xc001)=|=0xc001)| |00001690| 7b 0d 09 09 2f 2f 20 49 | 74 27 73 20 61 20 47 57 |{...// I|t's a GW| |000016a0| 6f 72 6c 64 20 69 66 66 | 20 74 68 65 20 70 6f 72 |orld iff| the por| |000016b0| 74 56 65 72 73 69 6f 6e | 20 68 61 73 20 62 6f 74 |tVersion| has bot| |000016c0| 68 20 68 69 67 68 20 62 | 69 74 73 20 73 65 74 20 |h high b|its set | |000016d0| 28 63 47 72 61 66 50 6f | 72 74 29 20 61 6e 64 0d |(cGrafPo|rt) and.| |000016e0| 09 09 2f 2f 20 74 68 65 | 20 6c 6f 77 20 62 69 74 |..// the| low bit| |000016f0| 20 73 65 74 20 28 47 57 | 6f 72 6c 64 29 2e 20 53 | set (GW|orld). S| |00001700| 65 65 20 41 70 70 6c 65 | 20 54 65 63 68 20 4e 6f |ee Apple| Tech No| |00001710| 74 65 20 d2 52 6f 77 42 | 79 74 65 73 20 52 65 76 |te .RowB|ytes Rev| |00001720| 65 61 6c 65 64 20 49 49 | d3 2e 0d 09 09 72 65 74 |ealed II|.....ret| |00001730| 75 72 6e 20 47 65 74 47 | 57 6f 72 6c 64 44 65 76 |urn GetG|WorldDev| |00001740| 69 63 65 28 28 47 57 6f | 72 6c 64 50 74 72 29 77 |ice((GWo|rldPtr)w| |00001750| 69 6e 64 6f 77 29 3b 0d | 09 7d 0d 09 72 3d 77 69 |indow);.|.}..r=wi| |00001760| 6e 64 6f 77 2d 3e 70 6f | 72 74 52 65 63 74 3b 0d |ndow->po|rtRect;.| |00001770| 09 47 65 74 50 6f 72 74 | 28 26 6f 6c 64 57 69 6e |.GetPort|(&oldWin| |00001780| 64 6f 77 29 3b 0d 09 53 | 65 74 50 6f 72 74 28 77 |dow);..S|etPort(w| |00001790| 69 6e 64 6f 77 29 3b 0d | 09 4c 6f 63 61 6c 54 6f |indow);.|.LocalTo| |000017a0| 47 6c 6f 62 61 6c 52 65 | 63 74 28 26 72 29 3b 0d |GlobalRe|ct(&r);.| |000017b0| 09 53 65 74 50 6f 72 74 | 28 6f 6c 64 57 69 6e 64 |.SetPort|(oldWind| |000017c0| 6f 77 29 3b 0d 09 72 65 | 74 75 72 6e 20 47 65 74 |ow);..re|turn Get| |000017d0| 52 65 63 74 44 65 76 69 | 63 65 28 26 72 29 3b 0d |RectDevi|ce(&r);.| |000017e0| 7d 0d 0d 47 44 48 61 6e | 64 6c 65 20 47 65 74 52 |}..GDHan|dle GetR| |000017f0| 65 63 74 44 65 76 69 63 | 65 28 52 65 63 74 20 2a |ectDevic|e(Rect *| |00001800| 72 29 0d 2f 2f 20 52 65 | 74 75 72 6e 73 20 47 44 |r).// Re|turns GD| |00001810| 48 61 6e 64 6c 65 20 6f | 66 20 73 63 72 65 65 6e |Handle o|f screen| |00001820| 20 77 69 74 68 20 6c 61 | 72 67 65 73 74 20 69 6e | with la|rgest in| |00001830| 74 65 72 73 65 63 74 69 | 6f 6e 20 77 69 74 68 20 |tersecti|on with | |00001840| 74 68 65 20 67 6c 6f 62 | 61 6c 20 72 65 63 74 2e |the glob|al rect.| |00001850| 0d 7b 0d 09 52 65 63 74 | 20 6f 76 65 72 6c 61 70 |.{..Rect| overlap| |00001860| 3b 0d 09 47 44 48 61 6e | 64 6c 65 20 64 65 76 69 |;..GDHan|dle devi| |00001870| 63 65 2c 64 6f 6d 69 6e | 61 6e 74 44 65 76 69 63 |ce,domin|antDevic| |00001880| 65 3d 4e 55 4c 4c 3b 0d | 09 6c 6f 6e 67 20 61 72 |e=NULL;.|.long ar| |00001890| 65 61 2c 67 72 65 61 74 | 65 73 74 41 72 65 61 3b |ea,great|estArea;| |000018a0| 0d 09 6c 6f 6e 67 20 71 | 44 3b 0d 0d 09 69 66 28 |..long q|D;...if(| |000018b0| 72 3d 3d 4e 55 4c 4c 29 | 72 65 74 75 72 6e 20 4e |r==NULL)|return N| |000018c0| 55 4c 4c 3b 0d 09 47 65 | 73 74 61 6c 74 28 67 65 |ULL;..Ge|stalt(ge| |000018d0| 73 74 61 6c 74 51 75 69 | 63 6b 64 72 61 77 56 65 |staltQui|ckdrawVe| |000018e0| 72 73 69 6f 6e 2c 26 71 | 44 29 3b 0d 09 69 66 28 |rsion,&q|D);..if(| |000018f0| 71 44 3c 67 65 73 74 61 | 6c 74 38 42 69 74 51 44 |qD<gesta|lt8BitQD| |00001900| 29 72 65 74 75 72 6e 20 | 4e 55 4c 4c 3b 09 2f 2f |)return |NULL;.//| |00001910| 20 6e 65 65 64 20 38 2d | 62 69 74 20 71 75 69 63 | need 8-|bit quic| |00001920| 6b 64 72 61 77 0d 09 64 | 65 76 69 63 65 3d 47 65 |kdraw..d|evice=Ge| |00001930| 74 44 65 76 69 63 65 4c | 69 73 74 28 29 3b 0d 09 |tDeviceL|ist();..| |00001940| 67 72 65 61 74 65 73 74 | 41 72 65 61 3d 30 3b 0d |greatest|Area=0;.| |00001950| 09 77 68 69 6c 65 28 64 | 65 76 69 63 65 21 3d 4e |.while(d|evice!=N| |00001960| 55 4c 4c 29 7b 0d 09 09 | 69 66 28 54 65 73 74 44 |ULL){...|if(TestD| |00001970| 65 76 69 63 65 41 74 74 | 72 69 62 75 74 65 28 64 |eviceAtt|ribute(d| |00001980| 65 76 69 63 65 2c 73 63 | 72 65 65 6e 44 65 76 69 |evice,sc|reenDevi| |00001990| 63 65 29 0d 09 09 09 26 | 26 20 54 65 73 74 44 65 |ce)....&|& TestDe| |000019a0| 76 69 63 65 41 74 74 72 | 69 62 75 74 65 28 64 65 |viceAttr|ibute(de| |000019b0| 76 69 63 65 2c 73 63 72 | 65 65 6e 41 63 74 69 76 |vice,scr|eenActiv| |000019c0| 65 29 29 7b 0d 09 09 09 | 09 53 65 63 74 52 65 63 |e)){....|.SectRec| |000019d0| 74 28 72 2c 26 28 2a 64 | 65 76 69 63 65 29 2d 3e |t(r,&(*d|evice)->| |000019e0| 67 64 52 65 63 74 2c 26 | 6f 76 65 72 6c 61 70 29 |gdRect,&|overlap)| |000019f0| 3b 0d 09 09 09 09 61 72 | 65 61 3d 28 6c 6f 6e 67 |;.....ar|ea=(long| |00001a00| 29 28 6f 76 65 72 6c 61 | 70 2e 72 69 67 68 74 2d |)(overla|p.right-| |00001a10| 6f 76 65 72 6c 61 70 2e | 6c 65 66 74 29 2a 28 6f |overlap.|left)*(o| |00001a20| 76 65 72 6c 61 70 2e 62 | 6f 74 74 6f 6d 2d 6f 76 |verlap.b|ottom-ov| |00001a30| 65 72 6c 61 70 2e 74 6f | 70 29 3b 0d 09 09 09 09 |erlap.to|p);.....| |00001a40| 69 66 28 61 72 65 61 3e | 67 72 65 61 74 65 73 74 |if(area>|greatest| |00001a50| 41 72 65 61 29 7b 0d 09 | 09 09 09 09 67 72 65 61 |Area){..|....grea| |00001a60| 74 65 73 74 41 72 65 61 | 3d 61 72 65 61 3b 0d 09 |testArea|=area;..| |00001a70| 09 09 09 09 64 6f 6d 69 | 6e 61 6e 74 44 65 76 69 |....domi|nantDevi| |00001a80| 63 65 3d 64 65 76 69 63 | 65 3b 0d 09 09 09 09 7d |ce=devic|e;.....}| |00001a90| 0d 09 09 09 7d 0d 09 09 | 64 65 76 69 63 65 3d 47 |....}...|device=G| |00001aa0| 65 74 4e 65 78 74 44 65 | 76 69 63 65 28 64 65 76 |etNextDe|vice(dev| |00001ab0| 69 63 65 29 3b 0d 09 7d | 0d 09 72 65 74 75 72 6e |ice);..}|..return| |00001ac0| 20 64 6f 6d 69 6e 61 6e | 74 44 65 76 69 63 65 3b | dominan|tDevice;| |00001ad0| 0d 7d 0d 0d 23 69 66 20 | 30 0d 09 23 69 66 20 55 |.}..#if |0..#if U| |00001ae0| 4e 49 56 45 52 53 41 4c | 5f 48 45 41 44 45 52 53 |NIVERSAL|_HEADERS| |00001af0| 0d 09 09 23 69 66 6e 64 | 65 66 20 5f 5f 44 49 53 |...#ifnd|ef __DIS| |00001b00| 50 4c 41 59 53 5f 5f 0d | 09 09 09 23 69 6e 63 6c |PLAYS__.|...#incl| |00001b10| 75 64 65 20 3c 44 69 73 | 70 6c 61 79 73 2e 68 3e |ude <Dis|plays.h>| |00001b20| 0d 09 09 23 65 6e 64 69 | 66 0d 09 23 65 6c 73 65 |...#endi|f..#else| |00001b30| 0d 09 09 65 6e 75 6d 7b | 6b 44 4d 44 72 69 76 65 |...enum{|kDMDrive| |00001b40| 72 4e 6f 74 44 69 73 70 | 6c 61 79 4d 67 72 41 77 |rNotDisp|layMgrAw| |00001b50| 61 72 65 45 72 72 20 3d | 20 2d 36 32 32 38 7d 3b |areErr =| -6228};| |00001b60| 0d 09 09 65 78 74 65 72 | 6e 20 70 61 73 63 61 6c |...exter|n pascal| |00001b70| 20 4f 53 45 72 72 20 44 | 4d 53 65 74 44 69 73 70 | OSErr D|MSetDisp| |00001b80| 6c 61 79 4d 6f 64 65 28 | 47 44 48 61 6e 64 6c 65 |layMode(|GDHandle| |00001b90| 20 74 68 65 44 65 76 69 | 63 65 2c 75 6e 73 69 67 | theDevi|ce,unsig| |00001ba0| 6e 65 64 20 6c 6f 6e 67 | 20 6d 6f 64 65 0d 09 09 |ned long| mode...| |00001bb0| 09 2c 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 20 |.,unsign|ed long | |00001bc0| 2a 64 65 70 74 68 4d 6f | 64 65 2c 75 6e 73 69 67 |*depthMo|de,unsig| |00001bd0| 6e 65 64 20 6c 6f 6e 67 | 20 72 65 73 65 72 76 65 |ned long| reserve| |00001be0| 64 2c 48 61 6e 64 6c 65 | 20 64 69 73 70 6c 61 79 |d,Handle| display| |00001bf0| 53 74 61 74 65 29 0d 09 | 09 20 09 3d 7b 30 78 33 |State)..|. .={0x3| |00001c00| 30 33 43 2c 30 78 30 41 | 31 31 2c 30 78 41 42 45 |03C,0x0A|11,0xABE| |00001c10| 42 7d 3b 0d 09 09 65 78 | 74 65 72 6e 20 70 61 73 |B};...ex|tern pas| |00001c20| 63 61 6c 20 4f 53 45 72 | 72 20 44 4d 43 68 65 63 |cal OSEr|r DMChec| |00001c30| 6b 44 69 73 70 6c 61 79 | 4d 6f 64 65 28 47 44 48 |kDisplay|Mode(GDH| |00001c40| 61 6e 64 6c 65 20 74 68 | 65 44 65 76 69 63 65 2c |andle th|eDevice,| |00001c50| 75 6e 73 69 67 6e 65 64 | 20 6c 6f 6e 67 20 6d 6f |unsigned| long mo| |00001c60| 64 65 0d 09 09 09 2c 75 | 6e 73 69 67 6e 65 64 20 |de....,u|nsigned | |00001c70| 6c 6f 6e 67 20 64 65 70 | 74 68 4d 6f 64 65 2c 75 |long dep|thMode,u| |00001c80| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 20 2a 73 77 |nsigned |long *sw| |00001c90| 69 74 63 68 46 6c 61 67 | 73 2c 75 6e 73 69 67 6e |itchFlag|s,unsign| |00001ca0| 65 64 20 6c 6f 6e 67 20 | 72 65 73 65 72 76 65 64 |ed long |reserved| |00001cb0| 0d 09 09 09 2c 42 6f 6f | 6c 65 61 6e 20 2a 6d 6f |....,Boo|lean *mo| |00001cc0| 64 65 4f 6b 29 3d 7b 30 | 78 33 30 33 43 2c 30 78 |deOk)={0|x303C,0x| |00001cd0| 30 43 31 32 2c 30 78 41 | 42 45 42 7d 3b 0d 09 09 |0C12,0xA|BEB};...| |00001ce0| 65 6e 75 6d 20 7b 0d 09 | 09 09 67 65 73 74 61 6c |enum {..|..gestal| |00001cf0| 74 44 69 73 70 6c 61 79 | 4d 67 72 41 74 74 72 09 |tDisplay|MgrAttr.| |00001d00| 09 3d 20 27 64 70 6c 79 | 27 2c 09 2f 2a 20 44 69 |.= 'dply|',./* Di| |00001d10| 73 70 6c 61 79 20 4d 61 | 6e 61 67 65 72 20 61 74 |splay Ma|nager at| |00001d20| 74 72 69 62 75 74 65 73 | 20 2a 2f 0d 09 09 09 67 |tributes| */....g| |00001d30| 65 73 74 61 6c 74 44 69 | 73 70 6c 61 79 4d 67 72 |estaltDi|splayMgr| |00001d40| 50 72 65 73 65 6e 74 09 | 3d 20 30 09 09 09 2f 2a |Present.|= 0.../*| |00001d50| 20 54 72 75 65 20 69 66 | 20 44 69 73 70 6c 61 79 | True if| Display| |00001d60| 20 4d 67 72 20 69 73 20 | 70 72 65 73 65 6e 74 20 | Mgr is |present | |00001d70| 2a 2f 0d 09 09 7d 3b 0d | 09 23 65 6e 64 69 66 0d |*/...};.|.#endif.| |00001d80| 09 0d 09 2f 2a 20 0d 09 | 54 68 65 73 65 20 65 6e |.../* ..|These en| |00001d90| 75 6d 20 64 65 66 69 6e | 69 74 69 6f 6e 73 20 66 |um defin|itions f| |00001da0| 6f 72 20 75 73 65 20 77 | 69 74 68 20 74 68 65 20 |or use w|ith the | |00001db0| 63 73 63 47 65 74 4e 65 | 78 74 52 65 73 6f 6c 75 |cscGetNe|xtResolu| |00001dc0| 74 69 6f 6e 20 64 72 69 | 76 65 72 20 73 74 61 74 |tion dri|ver stat| |00001dd0| 75 73 20 63 61 6c 6c 20 | 0d 09 61 72 65 20 74 61 |us call |..are ta| |00001de0| 6b 65 6e 20 66 72 6f 6d | 20 74 68 65 20 41 37 20 |ken from| the A7 | |00001df0| 64 72 61 66 74 20 28 46 | 65 62 20 31 30 2c 27 39 |draft (F|eb 10,'9| |00001e00| 35 29 20 6f 66 20 41 70 | 70 6c 65 27 73 20 44 65 |5) of Ap|ple's De| |00001e10| 73 69 67 6e 69 6e 67 20 | 50 43 49 20 43 61 72 64 |signing |PCI Card| |00001e20| 73 20 61 6e 64 20 44 72 | 69 76 65 72 73 20 66 6f |s and Dr|ivers fo| |00001e30| 72 0d 09 50 6f 77 65 72 | 20 4d 61 63 20 43 6f 6d |r..Power| Mac Com| |00001e40| 70 75 74 65 72 73 2e 20 | 55 6e 64 6f 75 62 74 65 |puters. |Undoubte| |00001e50| 64 6c 79 20 74 68 65 73 | 65 20 65 6e 75 6d 20 64 |dly thes|e enum d| |00001e60| 65 66 69 6e 69 74 69 6f | 6e 73 20 77 69 6c 6c 20 |efinitio|ns will | |00001e70| 61 70 70 65 61 72 20 69 | 6e 20 73 6f 6d 65 20 66 |appear i|n some f| |00001e80| 75 74 75 72 65 20 0d 09 | 76 65 72 73 69 6f 6e 20 |uture ..|version | |00001e90| 6f 66 20 56 69 64 65 6f | 2e 68 2c 20 70 65 72 68 |of Video|.h, perh| |00001ea0| 61 70 73 20 77 69 74 68 | 20 43 6f 64 65 57 61 72 |aps with| CodeWar| |00001eb0| 72 69 6f 72 20 36 2c 20 | 61 74 20 77 68 69 63 68 |rior 6, |at which| |00001ec0| 20 74 69 6d 65 20 74 68 | 65 79 20 63 61 6e 20 62 | time th|ey can b| |00001ed0| 65 20 64 65 6c 65 74 65 | 64 20 66 72 6f 6d 20 68 |e delete|d from h| |00001ee0| 65 72 65 2e 0d 09 2a 2f | 0d 09 65 6e 75 6d 7b 0d |ere...*/|..enum{.| |00001ef0| 09 09 6b 44 69 73 70 6c | 61 79 4d 6f 64 65 49 44 |..kDispl|ayModeID| |00001f00| 43 75 72 72 65 6e 74 3d | 30 0d 09 09 2c 6b 44 69 |Current=|0...,kDi| |00001f10| 73 70 6c 61 79 4d 6f 64 | 65 49 44 49 6e 76 61 6c |splayMod|eIDInval| |00001f20| 69 64 3d 30 78 66 66 66 | 66 66 66 66 66 0d 09 09 |id=0xfff|fffff...| |00001f30| 2c 6b 44 69 73 70 6c 61 | 79 4d 6f 64 65 49 44 46 |,kDispla|yModeIDF| |00001f40| 69 6e 64 46 69 72 73 74 | 52 65 73 6f 6c 75 74 69 |indFirst|Resoluti| |00001f50| 6f 6e 3d 30 78 66 66 66 | 66 66 66 66 65 0d 09 09 |on=0xfff|ffffe...| |00001f60| 2c 6b 44 69 73 70 6c 61 | 79 4d 6f 64 65 49 44 4e |,kDispla|yModeIDN| |00001f70| 6f 4d 6f 72 65 52 65 73 | 6f 6c 75 74 69 6f 6e 73 |oMoreRes|olutions| |00001f80| 3d 30 78 66 66 66 66 66 | 66 66 64 0d 09 7d 3b 0d |=0xfffff|ffd..};.| |00001f90| 23 65 6e 64 69 66 00 00 | 00 00 00 00 00 00 00 00 |#endif..|........| |00001fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002000| 00 00 01 00 00 00 02 30 | 00 00 01 30 00 00 00 5e |.......0|...0...^| |00002010| 63 65 2e 63 20 76 65 72 | 73 69 6f 6e 20 32 2e 30 |ce.c ver|sion 2.0| |00002020| 33 0d 52 65 74 75 72 6e | 73 20 61 20 68 61 6e 64 |3.Return|s a hand| |00002030| 11 47 65 74 53 63 72 65 | 65 6e 44 65 76 69 63 65 |.GetScre|enDevice| |00002040| 2e 63 02 00 00 00 54 45 | 58 54 43 57 49 45 01 00 |.c....TE|XTCWIE..| |00002050| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 00 02 40 |..TEXTCW|IE.....@| |00002060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002070| 00 00 a1 48 9e 2a 00 00 | 1f 16 00 00 02 8e 6f 74 |...H.*..|......ot| |00002080| 28 29 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 64 |() retur|ns the d| |00002090| 65 76 69 63 65 27 73 20 | 73 6c 6f 74 20 6e 75 6d |evice's |slot num| |000020a0| 62 65 72 2e 0d 4e 6f 74 | 65 3a 20 74 68 69 73 20 |ber..Not|e: this | |000020b0| 66 69 6c 65 20 77 61 73 | 20 66 6f 72 6d 65 72 6c |file was| formerl| |000020c0| 79 20 63 61 6c 6c 65 64 | 20 47 44 47 65 74 53 63 |y called| GDGetSc| |000020d0| 72 65 65 6e 44 65 76 69 | 63 65 2e 63 2c 20 61 6c |reenDevi|ce.c, al| |000020e0| 74 68 6f 75 67 68 74 20 | 74 68 65 20 66 75 6e 63 |thought |the func| |000020f0| 74 69 6f 6e 0d 69 74 73 | 65 6c 66 20 68 61 73 20 |tion.its|elf has | |00002100| 00 00 00 1e 00 2a 00 03 | 01 dd 02 7d 00 29 01 42 |.....*..|...}.).B| |00002110| 01 6a 02 79 00 00 05 ce | 00 00 00 00 00 00 00 00 |.j.y....|........| |00002120| 00 00 00 00 00 b6 00 07 | 00 00 18 3c 00 00 18 3c |........|...<...<| |00002130| 15 41 64 64 72 65 73 73 | 54 6f 53 63 72 65 65 6e |.Address|ToScreen| |00002140| 44 65 76 69 63 65 00 00 | 18 3c 00 00 18 3c 0d 41 |Device..|.<...<.A| |00002150| 64 64 72 65 73 73 54 6f | 53 6c 6f 74 00 00 12 48 |ddressTo|Slot...H| |00002160| 00 00 12 48 0f 47 65 74 | 53 63 72 65 65 6e 44 65 |...H.Get|ScreenDe| |00002170| 76 69 63 65 00 00 12 9f | 00 00 12 ae 0f 47 65 74 |vice....|.....Get| |00002180| 57 69 6e 64 6f 77 44 65 | 76 69 63 65 00 00 18 e3 |WindowDe|vice....| |00002190| 00 00 18 f4 11 47 6c 6f | 62 61 6c 54 6f 4c 6f 63 |.....Glo|balToLoc| |000021a0| 61 6c 52 65 63 74 00 00 | 18 7c 00 00 18 8d 11 4c |alRect..|.|.....L| |000021b0| 6f 63 61 6c 54 6f 47 6c | 6f 62 61 6c 52 65 63 74 |ocalToGl|obalRect| |000021c0| 00 00 18 3c 00 00 18 3c | 13 53 6c 6f 74 54 6f 53 |...<...<|.SlotToS| |000021d0| 63 72 65 65 6e 44 65 76 | 69 63 65 00 00 00 00 48 |creenDev|ice....H| |000021e0| 00 09 4d 6f 6e 61 63 6f | 00 00 00 00 00 00 00 00 |..Monaco|........| |000021f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002200| 00 00 00 03 00 04 00 60 | 00 4b 02 5d 02 ec 00 60 |.......`|.K.]...`| |00002210| 00 4b 02 5d 02 ec ad 8f | 3b 96 00 00 06 47 00 00 |.K.]....|;....G..| |00002220| 06 4b 00 00 02 2e 00 00 | 00 00 00 04 00 01 00 01 |.K......|........| |00002230| 00 00 01 00 00 00 02 30 | 00 00 01 30 00 00 00 5e |.......0|...0...^| |00002240| 01 d2 97 1c 38 ec 00 00 | 00 1c 00 5e 00 01 4d 50 |....8...|...^..MP| |00002250| 53 52 00 02 00 12 4d 57 | 42 42 00 00 00 36 03 f0 |SR....MW|BB...6..| |00002260| ff ff 00 00 00 00 00 00 | 00 00 03 ef ff ff 00 00 |........|........| |00002270| 00 22 00 00 00 00 03 ed | ff ff 00 00 00 dc 00 00 |."......|........| |00002280| 00 00 03 f0 ff ff 00 00 | 01 28 00 00 00 00 00 00 |........|.(......| |00002290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+